﻿#ifndef DWGLINE_H
#define DWGLINE_H

#include<QPoint>
#include "dwgobject.h"
#include<QObject>

class DwgLine : public DwgObject
{
    Q_OBJECT
public:
    explicit DwgLine(QObject *parent = nullptr);

private:
    QPointF mStartPt,mEndPt;

    // DwgObject interface
public:
     void Draw(QPainter *painter)  override;
     void SetData(QPointF pt1,QPointF pt2) override;
     void Select(QPointF pt);
};

#endif // DWGLINE_H
